(5845) 1988 QP is a main-belt minor planet. It was discovered by Robert H. McNaught at the Siding Spring Observatory in Canberra, Australia, on August 19, 1988.